package com.victualler.business.purchase.service;

import com.victualler.business.purchase.dto.PrePurchaseOrderInfoDto;
import com.victualler.business.purchase.entity.PrePurchaseOrderDao;
import com.victualler.business.purchase.repository.PrePurchaseOrderQueryRepository;
import com.victualler.business.purchase.repository.PrePurchaseOrderRepository;
import com.victualler.core.base.service.BaseService;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @author: Guoshichang
 * @discription:
 */
public interface PrePurchaseOrderService extends BaseService<PrePurchaseOrderDao, PrePurchaseOrderRepository,PrePurchaseOrderQueryRepository>{
    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param id 预订单id
     * @Function  根据条件入参prePurchaseRequestDto动态分页查询权限
     */
    public PrePurchaseOrderInfoDto findInfo(@PathVariable("id") Long id);

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param prePurchaseOrderInfoDto 预订单实体大对象
     * @Function  保存预订单实体大对象
     */
    public void saveInfo(PrePurchaseOrderInfoDto prePurchaseOrderInfoDto);

    /**
     * @author Guoshichang
     * @since 18:01 on 2018/10/9.
     * @param prePurchaseOrderDao 审查大对象
     * @return
     * @Function
     */
    public void check(PrePurchaseOrderDao prePurchaseOrderDao);

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param id 预订单id
     * @Function  删除草稿订单
     */
    public void deleteInfo(Long id);

}
